class AddOnlineToApps < ActiveRecord::Migration
  def change
    remove_column :apps, :freq
    add_column :apps, :online, :boolean, default: false
    add_column :apps, :mac, :string
    add_column :apps, :app_version_id, :integer
    add_column :terminals, :terminal_version_id, :integer
    add_index :apps, :app_version_id
    add_index :terminals, :terminal_version_id
    drop_table :access_points
    drop_table :current_clients
    drop_table :delivers
  end
end
